package com.project.dhCamera.utils;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
 * @author Sweey Zhang
 * @description
 * @date 2021/7/20 14:50
 */
@Component
@Data
public class ProgramConfig {
    @Value("${ff.path}")
    private String path;//默认命令行执行根路径
    @Value("${ff.debug}")
    private boolean debug;//是否开启debug模式
    @Value("${ff.size}")
    private Integer size;//任务池大小
    @Value("${ff.callback}")
    private String callback;//回调通知地址
    @Value("${ff.keepalive}")
    private boolean keepalive;//是否开启保活

    @Override
    public String toString() {
        return "ProgramConfig [path=" + path + ", debug=" + debug + ", size=" + size + ", callback=" + callback
                + ", keepalive=" + keepalive + "]";
    }
}
